home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19950528-19950726 / 000288_news@columbia.edu_Sun Jul 9 16:55:26 1995.msg < prev    next >
Internet Message Format  |  1995-07-31  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05445
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 9 Jul 1995 12:55:29 -0400
  3. Received: by apakabar.cc.columbia.edu id AA10984
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 9 Jul 1995 12:55:28 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Reading data from a serial port
  9. Date: 9 Jul 1995 16:55:26 GMT
  10. Organization: Columbia University
  11. Lines: 45
  12. Message-Id: <3tp1lu$an6@apakabar.cc.columbia.edu>
  13. References: <LOBO.95Jul7184920@konishiki.Stanford.EDU>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <LOBO.95Jul7184920@konishiki.Stanford.EDU>,
  18. Donald Lobo <lobo@yahoo.com> wrote:
  19. >I'm getting data fed into a serial port (com2, cua1) from a satellite news
  20. >feed receiver. The data is pretty much ascii text with a few control
  21. >character to indicate various newsfeed specific features (urgency,
  22. >distribution, etc), and also start and stop control characters etc.
  23. >
  24. >Rather than sit and write a program to do this, I was wondering
  25. >whether I could use a communications program avalaible in the public
  26. >domain. 
  27. >
  28. Perhaps, or you could use Kermit, which is copyrighted and not in
  29. the public domain.
  30.  
  31. >1. Could I use kermit in receive mode to read the data from the serial
  32. >port using the receive command, though the protocol is not kermit? Is
  33. >there any way I could get kermit to take care of the data receiving
  34. >part.
  35. >
  36. You did not say what operating system -- COM1 implies DOS, cua1 implies
  37. UNIX.  It doesn't make much difference.  MS-DOS Kermit for DOS and Windows
  38. and C-Kermit for UNIX have approximately the same capabilities in this
  39. area.
  40.  
  41. There are lots of ways to accomplish what you need to do.  The simplest
  42. is simply "log session" while in CONNECT mode.  This writes all the
  43. incoming bytes to the session log file.  To stop it, you would have to
  44. "escape back" from CONNECT mode to the prompt and "close session".
  45. Thus, starting and stopping the capture is manual.
  46.  
  47. You could also automate it by writing a script program in Kermit's 
  48. script programming language to look for article delimiters and then
  49. direct each article to the desired file, opening and closing files
  50. automatically based on the data stream.
  51.  
  52. If the "protocol" used by the news feed includes other types of information,
  53. like sequencing, checksums, etc, you can even use Kermit's string-processing
  54. and arithmetic functions to handle this.
  55.  
  56. For details about Kermit software and documentation (you'll have to read
  57. the manual to learn how to write script programs), visit our Web site:
  58.  
  59.   http://www.columbia.edu/kermit/
  60.  
  61. - Frank